import request from '@/utils/request'

// 查询退货单列表
export function listRetake(query) {
  return request({
    url: '/emsboot/retake/list',
    method: 'get',
    params: query
  })
}

// 查询退货单详细
export function getRetake(id) {
  return request({
    url: '/emsboot/retake/' + id,
    method: 'get'
  })
}

// 新增退货单
export function addRetake(data) {
  return request({
    url: '/emsboot/retake',
    method: 'post',
    data: data
  })
}

// 修改退货单
export function updateRetake(data) {
  return request({
    url: '/emsboot/retake',
    method: 'put',
    data: data
  })
}

// 删除退货单
export function delRetake(id) {
  return request({
    url: '/emsboot/retake/' + id,
    method: 'delete'
  })
}
